#ifndef __HA_FLASH_H__
#define __HA_FLASH_H__

#include "at32f403a_407.h"








void at32_flash_read_byte(uint32_t read_addr, uint8_t *p_buffer, uint16_t num_read);
void at32_flash_read_word(uint32_t read_addr, uint32_t *p_buffer, uint16_t num_read);
void at32_flash_read_halfword(uint32_t read_addr, uint16_t *p_buffer, uint16_t num_read);

error_status at32_flash_write_byte(uint32_t write_addr,uint8_t *p_buffer,uint16_t num_write);
error_status at32_flash_write_word(uint32_t write_addr,uint32_t *p_buffer,uint16_t num_write);
error_status at32_flash_write_halfword(uint32_t write_addr,uint16_t *p_buffer,uint16_t num_write);


#endif


